<%@ page contentType="text/html;charset=UTF-8" %>
    <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<meta name="decorator" content="common" />
	<style type="text/css">
		em.error {
			height: 35px;
			display: inline-block;
			vertical-align: middle;
			margin-right: 2px;
			background: url("${ctxWebStatic}/images/error_img.png") no-repeat 0px
				0px;
			padding-left: 24px;
			color: #d3001e;
			font-size: 16px;
			font-family: "微软雅黑";
		}
	</style>
	<script type="text/javascript">
	var validatorAddress;
	$(function(){
		isSatisfyFree();
		validatorAddress = $("#addressForm").validate({
			onfocusout: function(element) { $(element).valid(); },  
			rules : {
				receive : {required : true,receiveCheck : true,	rangelength:[2,10]},
				phone : {required : true,phoneCheck : true,rangelength:[11,11]},
				address : {required : true,addressCheck : true,	rangelength:[5,50]},
				area : {required : true}
			},
			messages : {
				receive : {required : '请输入收件人',rangelength:'请输入2-10个汉字'},
				phone : {required : '请输入联系方式',rangelength : '格式错误'},
				address : {required : '请输入详细地址',rangelength : '请输入5-50个字符，以汉字开头，可带数字、字母'},
				area : {required : '请选择所在地区'}
			},
			errorContainer: "#messageBox",
			errorPlacement: function(error, element) {
				if (element.is("select")){
					error.insertAfter(element.parents('.tk_selcet'));
				} else {
					error.insertAfter(element);
				}
			},
			errorElement : "em",
			success:function(lable){
	        	lable.remove(); 
        	},
		});
		 jQuery.validator.addMethod("addressCheck", function(value,element, param) { 
				var tel = /^[\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5]*$/;  
			 	return this.optional(element) || (tel.test(value));  
	        }, $.validator.format("请输入5-50个字符，以汉字开头，可带数字、字母")); 
		 jQuery.validator.addMethod("receiveCheck", function(value,element, param) { 
		    	var tel = /^[\u4e00-\u9fa5]*$/;  
			 	return this.optional(element) || (tel.test(value));  
	        }, $.validator.format("请输入2-10个汉字")); 
		    
		    jQuery.validator.addMethod("phoneCheck", function(value,element, param) { 
		    	var tel = /^[1][3,4,5,7,8][0-9]{9}$/;  
			 	return this.optional(element) || (tel.test(value));  
	        }, $.validator.format("格式错误")); 
	    $('.shop_num').change(function(){
	    	if(!($(this).val()>0)){
	    		$(this).val(1)
	    		$('#checkShowBoxSpan').text('套餐数量应大于0');
	    		$('#checkShowBox').show();
	    		isSatisfyFree()
	    		return false;
	    	}
	    	if(!($(this).val()%1==0)){
	    		$(this).val(1)
	    		$('#checkShowBoxSpan').text('套餐数量应为整数');
	    		$('#checkShowBox').show();
	    		isSatisfyFree()
	    		return false;
	    	}
	    	isSatisfyFree();
		})
	    $('#choseStore').change(function(){
	    	var code = $(this).val();
			if(code!=''){
				$.ajax({
					url:'${ctxWeb}/goodsComb/getStoreByCode',
					data:{'code':code},
					async:false,
					success:function(result){
						var sendAreaId = result.classify;
						$('#sendAreaId').val(sendAreaId);
					}
				})
			}else{
				$('#sendAreaId').val('');
			}
			isSatisfyFree();
		})
		$('.item_amout').find('.plus').click(function(){
			var index=$(this).parents('.item_amout').find('.plus').index($(this));
			if(index ==0){
				$(this).next('input').val(parseInt($(this).next('input').val())-1);
				if($(this).next('input').val()<1){
					$(this).next('input').val(1);
					$('#checkShowBoxSpan').text('商品数量应大于0');
		    		$('#checkShowBox').show();
		    		return false;
				}
				isSatisfyFree();
			}else{
				$(this).prev('input').val(parseInt($(this).prev('input').val())+1);
				isSatisfyFree();
			}
		})
	    $('.parts_search_list').click(function(){
			$(this).parents().find("i").removeClass('search_chose_hover');
			$(this).find("i").addClass('search_chose_hover');
			var vv=$('.parts_search_list').index($(this));	
			$(".numRadio").find('input').eq(vv).click();
	     });
	     
	   	//设为默认
		$(".default_box").click(function(){
			if ($(this).parent().find("i").hasClass("search_chose_hover")) {
				$(this).parent().find("i").removeClass("search_chose_hover");
			} else{
				$(this).parent().find("i").addClass("search_chose_hover");
			}
			var Inputindex=$('.parts_search_list').index($(this));
			$(".numRadio").find('input').eq(Inputindex).click();
		});
		$(".close_page").click(function(){
			$(this).parents('.jd_tk').hide();
		})
		$(".shopping_car_confirm a").click(function(){
			$("#proment_new_address").hide();
			$("#proment_chose_address").hide();
			var chose_box = $('.chose_set_box').find('.chose_address_info_hover');
			var chose_address_id = $(chose_box).find('.chose_address_info_id').text();
			var chose_address_province = $(chose_box).find('.chose_address_info_province').text();
			var chose_address_receive = $(chose_box).find('.chose_address_info_receive').text();
			var chose_address_phone = $(chose_box).find('.chose_address_info_phone').text();
			var chose_address_address = $(chose_box).find('.chose_address_info_address').text();
			$('#receiveAreaId').val(chose_address_province);
			refreshAddress(chose_address_id,chose_address_province,chose_address_receive,chose_address_phone,chose_address_address);
		});
		//新增收貨地址地址保存
		$(".proment_chose_address_save a").click(function(){
			var id = $('.receiveId').val()
			var receive = $('.receiveName').val()
			var phone = $('.receivePhone').val()
			var province = $('.provinceSelect').val()
			var provinceName = $('.provinceSelect').find("option:selected").attr('title');
			var city = $('.citySelect').val()
			var cityName = $('.citySelect').find("option:selected").attr('title');
			var area = $('.areaSelect').val()
			var areaName = $('.areaSelect').find("option:selected").attr('title');
			var address = $('.receiveAddress').val()
			var isDef = 0;
			if($('.address_Bomb_info').find('.default_box').find('.search_chose').hasClass('search_chose_hover')){
				isDef = 1;
			}
			var checkFlag = true;
			if (!$("#addressForm").valid()) {
				checkFlag = false;
			}
			if (!checkFlag) {
				return false;
			}
			$.ajax({
				url:'${ctxWeb}/address/saveAddress',
				async:false,
				data:{
					'id':id,
					'receive':receive,
					'phone':phone,
					'province':province,
					'provinceName':provinceName,
					'city':city,
					'cityName':cityName,
					'area':area,
					'areaName':areaName,
					'address':address,
					'isDef':isDef
				},
				success:function(result){
					refreshAddress(result.id,result.province,result.receive,result.phone,result.provinceName+result.cityName+result.areaName+result.address);
					$('#proment_new_address').hide();
				}
			})
		});
		//打开新增地址框
		$(".js_new_address").click(function(){
			validatorAddress.resetForm();  
			var flag = true;
			$.ajax({
				url:'${ctxWeb}/address/selectByUserId',
				async:false,
				success:function(result){
					if(result!=null){
						if(!(result.length<10)){
							$('#checkShowBoxSpan').text('最多只能添加10个地址，不能继续添加新地址');
							$('#checkShowBox').show();
							flag = false;
						}
					}
				}
			})
			if(!flag){
				return;
			}
			$('.receiveName').val('');
			$('.receivePhone').val('')
			$('.provinceSelect').val('')
			$('.citySelect').val('')
			$('.areaSelect').val('')
			$('.receiveAddress').val('')
			$('.default_box').find('.search_chose').removeClass('search_chose_hover')
			$.ajax({
				url:'${ctxWeb}/address/getProvince',
				async:false,
				success:function(result){
					var html = '<option value="">省</option>';
					if(result!=null){
						for(var i = 0;i<result.length;i++){
							var area = result[i];
							if(area.name.length>4){
								var content = area.name.substring(0,3)+'...';
							}else{
								var content = area.name.substring(0,3);
							}
							html += '<option value="'+area.id+'" title="'+area.name+'">'+content+'</option>'
						}
					}
					$('.provinceSelect').html(html)
				}
			})
			$("#proment_new_address").show();	
		});
		//省份下拉框选择事件
		$('.provinceSelect').change(function(){
			var provinceId = $(this).val();
			$.ajax({
				url:'${ctxWeb}/address/selectByParent',
				async:false,
				data:{'id':provinceId},
				success:function(result){
					var html = '<option value="">市</option>';
					if(result!=null){
						for(var i = 0;i<result.length;i++){
							var area = result[i];
							if(area.name.length>4){
								var content = area.name.substring(0,3)+'...';
							}else{
								var content = area.name.substring(0,3);
							}
							html += '<option value="'+area.id+'" title="'+area.name+'">'+content+'</option>'
						}
					}
					$('.citySelect').html(html)
					$('.areaSelect').html('<option value="">区</option>')
				}
			})
		})
		//市级下拉框选择事件
		$('.citySelect').change(function(){
			var cityId = $(this).val();
			$.ajax({
				url:'${ctxWeb}/address/selectByParent',
				async:false,
				data:{'id':cityId},
				success:function(result){
					var html = '<option value="">区</option>';
					if(result!=null){
						for(var i = 0;i<result.length;i++){
							var area = result[i];
							if(area.name.length>4){
								var content = area.name.substring(0,3)+'...';
							}else{
								var content = area.name.substring(0,3);
							}
							html += '<option value="'+area.id+'" title="'+area.name+'">'+content+'</option>'
						}
					}
					$('.areaSelect').html(html)
				}
			})
		})
		$(".js_chose_address").click(function(){
			 $.ajax({
				url:'${ctxWeb}/address/selectByUserId',
				async:false,
				success:function(result){
					if(result!=null){
						var html = '';
						for(var i = 0;i<result.length;i++){
							var address = result[i];
							if(address.isDef==0){
								html += '<div class="chose_address_info address_Bomb_info clearfix">';
							}else{
								html += '<div class="chose_address_info address_Bomb_info chose_address_info_hover clearfix">';
							}
							html += '<figure class="Settlement_address_msg">';
							html += '<p class="chose_address_info_id hide">'+address.id +'</p>';
							html += '<p class="chose_address_info_province hide">'+address.province +'</p>';
							html += '<p><em>收件人&nbsp;&nbsp;&nbsp;&nbsp;：</em><span class="chose_address_info_receive">'+address.receive +'</span></p>';
							html += '<p><em>联系方式  ：</em><span class="chose_address_info_phone">'+address.phone +'</span></p>';
							html += '<p><em>收货地址  ：</em><span class="chose_address_info_address">'+address.provinceName+address.cityName+address.areaName+address.address+'</span></p>';
							html += '<p class="set_address">当前默认</p></figure></div>';
						}
						$('.chose_set_box').html(html);
					}
				}
			})
			$("#proment_chose_address").show();	
		});
		
		$(".chose_set_box").on('click','.chose_address_info',function(){
			$(this).parent().find(".chose_address_info").removeClass("chose_address_info_hover");
			$(this).addClass("chose_address_info_hover");	
		});
		
		$('input[name="transportTypeRaDio"]').click(function(){
			var transportType = $(this).val();
			var shopping_info_box = $(".shopping_info_box p").parents('.shopping_info_box');
			if(transportType==1){
				$(shopping_info_box).find('.yf_wl').removeClass('hide');
				$(shopping_info_box).find('.yf_kd').addClass('hide');
			}else{
				$(shopping_info_box).find('.yf_wl').addClass('hide');
				$(shopping_info_box).find('.yf_kd').removeClass('hide');
			}
			$('#transportType').val(transportType);
			isSatisfyFree()
		})
	})
	function sumAccount(){
		var sum_accont=0
		var num = $('.shop_num').val();
		var goodsComboPrice = $('#goodsComboPrice').val();
		sum_accont = parseFloat(goodsComboPrice) * parseFloat(num);
		var sum_yf_p = $(".shopping_info_box p").parents('.shopping_info_box').find('.yf_wl').find('.sum_yf');
		$(sum_yf_p).text((sum_accont*0.10).toFixed(2))
		var sum_yf=parseFloat($(sum_yf_p).text());
		if(!$(sum_yf_p).parents('.yf_wl').hasClass('hide')){
			if(!$(sum_yf_p).parents('.yf_wl').hasClass('isSatisfyFree')){
				sum_accont_total=sum_accont+sum_yf;
			}else{
				$(sum_yf_p).text('0.00');
				sum_accont_total = sum_accont;
			}
		}else{
			sum_accont_total = sum_accont;
		}
		sum_accont=sum_accont.toFixed(2);
		sum_accont_total=sum_accont_total.toFixed(2);
		$('.sum_accont').text(sum_accont);
		$('.sum_accont_all').text(sum_accont_total)
	}
	function isSatisfyFree(){
		sumAccount();
		var sendAreaId = $('#sendAreaId').val();
		var receiveAreaId = $('#receiveAreaId').val();
		var money = $('.sum_accont_all').text();
		if(receiveAreaId!='' && sendAreaId!=''){
			$.ajax({
				url:'${ctxWeb}/freeWaybill/isSatisfyFree',
				data:{'sendAreaId':sendAreaId,'provinceId':receiveAreaId},
				async:false,
				success:function(result){
					if(result!=null && result!=''){
						var satisfyMoney = result.money;
						if(satisfyMoney>money){//不满足包邮条件
							$('.yf_wl').removeClass('isSatisfyFree');
							$('.advance').removeClass('hide');
						}else{
							$('.yf_wl').find('.sum_yf').text('0.00');
							$('.yf_wl').addClass('isSatisfyFree');
							$('.advance').addClass('hide');
						}
						$('#isSatisfyFreeInput').val("1")
						$('#satisfyFreeMoney').text(satisfyMoney);
						$('#satisfyFreeShow').show();
					}else{
						$('#isSatisfyFreeInput').val("0")
						$('#satisfyFreeShow').hide();
					}
				}
			})
		}else{
			$('.yf_wl').removeClass('isSatisfyFree');
			$('#satisfyFreeShow').hide();
		}
		sumAccount();
	}
	//修改地址
	function editAddress(){
		$(".js_new_address").click();
		var addressId = $('#choseAddressId').val();
		if(addressId!=null && addressId!=''){
			$.ajax({
				url:'${ctxWeb}/address/getAddress',
				data:{'id':addressId},
				async:false,
				success:function(result){
					$('.receiveId').val(result.id)
					$('.receiveName').val(result.receive)
					$('.receivePhone').val(result.phone)
					$('.receiveAddress').val(result.address)
					$(".provinceSelect").find("option[value='"+result.province+"']").attr("selected",true);
					$(".provinceSelect").change()
					$(".citySelect").find("option[value='"+result.city+"']").attr("selected",true);
					$(".citySelect").change()
					$(".areaSelect").find("option[value='"+result.area+"']").attr("selected",true);
					if(result.isDef=='1'){
						$('.default_box').find('.search_chose').addClass('search_chose_hover');
					}else{
						$('.default_box').find('.search_chose').removeClass('search_chose_hover');
					}
					$("#proment_new_address").show();	
				}
			})
		}
	}
	//刷新当前选择地址
	function refreshAddress(chose_address_id,chose_address_province,chose_address_receive,chose_address_phone,chose_address_address){
		var Settlement_address = $('.Settlement_address');
		var Settlement_address_left = $('.Settlement_address_left');
		$('#choseAddressId').val(chose_address_id);
		$('#receiveAreaId').val(chose_address_province);
		$(Settlement_address).find('.settlement_address_receive').text(chose_address_receive);
		$(Settlement_address).find('.settlement_address_phone').text(chose_address_phone);
		$(Settlement_address).find('.settlement_address_address').text(chose_address_address);
		var html = '';
		html += '<figure class="col-xs-3 pad0 Settlement_address_right">'
		html += '<a href="javascript:void(0)" class="js_edit_address" style="padding-top: 20px;" onclick="editAddress()">修改地址</a>';
		html += '</figure>'
		if(($(Settlement_address_left).find('figure').size())<3){
			$(Settlement_address_left).append(html);
		}
		isSatisfyFree();
	}
	//提交订单
	function confirmOrder(){
		 //获取下单门店
		var storeCode = $('#choseStore').val();
		if(storeCode==''){
			$('#checkShowBoxSpan').text('请选择下单门店');
			$('#checkShowBox').show();
			return false;
		}else{
			$('#goodsComboStoreCode').val(storeCode);
		} 
		//获取地址信息
		var addressId = $('#choseAddressId').val();
		if(addressId==''){
			$('#checkShowBoxSpan').text('请选择收货地址');
	   		$('#checkShowBox').show();
	   		return false;
		}else{
			var provinceId = $('#receiveAreaId').val();
			$('#provinceId').val(provinceId);
		}
		//购买套餐数量
		var shopNum = parseInt($('.shop_num').val());
		if(shopNum<1){
			$('#checkShowBoxSpan').text('购买数量最低为1');
	   		$('#checkShowBox').show();
	   		return false;
		}else{
			$('#goodsComboNum').val(shopNum);
		}
		var goodsComboId = $('#goodsComboIdInput').val();
		$('#goodsComboId').val(goodsComboId);
		var Settlement_address = $('.Settlement_address');
		$('#receiveName').val($(Settlement_address).find('.settlement_address_receive').text())
		$('#receivePhone').val($(Settlement_address).find('.settlement_address_phone').text())
		$('#receiveAddress').val($(Settlement_address).find('.settlement_address_address').text())
		$('#vipGoodsComboConfirmOrderForm').submit();
	}
    </script>
</head>
	<body>
	<!--购物车-->
	<div class=" shopping_car_box">
		<div class="container">
			<div class="row">
				<div class="pay_detail_box">
					<!--门店筛选-->
					<div class="Transaction_title chose_store clearfix">
					<form:form modelAttribute="webStore">
					<input type="hidden" id="sendAreaId">
						<p class="col-sm-5 Transaction_type pad_r0">
							<label>选择下单门店：</label>
							<input type="hidden" id="sendAreaId">
							<form:select path="code" class="hy" id="choseStore">
								<form:option value="" label="请选择下单门店"/>
								<form:options items="${webStores}" htmlEscape="false" itemValue="code" itemLabel="cnName"/>
							</form:select>
						</p>
					</form:form>
					</div>
					<!--门店筛选结束-->
					<!--地址信息-->
					<div class="shopping_car_list">
						<h3 class="pay_detail_tit">地址信息</h3>
						<div class="Settlement_address clearfix">
							<div class="col-xs-9 Settlement_address_left pad0 clearfix">
							<input type="hidden" value="${webStore.classify}" id="sendAreaId">
								<figure class="col-xs-2 col-sm-1 pad0 text-center">
									<img src="${ctxWebStatic }/images/gps_address.png" alt="" />
									<p class="font-sm12">默认</p>
								</figure>
								<figure class="Settlement_address_msg col-xs-8">
								<c:if test="${empty defAddress}">
									<input type="hidden" value="${defAddress.province }" id="receiveAreaId">
									<input type="hidden" value="${defAddress.id }" id="choseAddressId">
									<p><em>收件人&nbsp;&nbsp;&nbsp;&nbsp;：</em><span class="settlement_address_receive">&nbsp;</span></p>
									<p><em>联系方式  ：</em><span class="settlement_address_phone">&nbsp;</span></p>
									<p><em>收货地址  ：</em><span class="settlement_address_address">&nbsp;</span></p>
								</c:if>
								<c:if test="${not empty defAddress}">
									<input type="hidden" value="${defAddress.province }" id="receiveAreaId">
									<input type="hidden" value="${defAddress.id }" id="choseAddressId">
									<p class="settlement_address_province hide">${defAddress.province }</p>
									<p><em>收件人&nbsp;&nbsp;&nbsp;&nbsp;：</em><span class="settlement_address_receive">${defAddress.receive }</span></p>
									<p><em>联系方式  ：</em><span class="settlement_address_phone">${defAddress.phone }</span></p>
									<p><em>收货地址  ：</em><span class="settlement_address_address">${defAddress.provinceName }${defAddress.cityName }${defAddress.areaName }${defAddress.address }</span></p>
								</c:if>
								</figure>
								<c:if test="${not empty defAddress}">
									<figure class="col-xs-3 pad0 Settlement_address_right">
										<a href="javascript:void(0)" class="js_edit_address" style="padding-top: 20px;" onclick="editAddress()">修改地址</a>
									</figure>
								</c:if>
							</div>
							<div class="col-xs-3 Settlement_address_right pad0">
								<a href="javascript:void(0)" class="js_chose_address">选择地址</a>
								<a href="javascript:void(0)" class="js_new_address">新增地址</a>
							</div>
						</div>
					</div>
					<!--地址信息结束-->
					<!--配送信息-->
					<div class="shopping_car_list">
						<h3 class="pay_detail_tit">配送信息</h3>
						<div class="dc_info_box clearfix">
							<p class="parts_search_list">
								<i class="search_chose"></i>
								<span>快递（到付）</span>
							</p>
							<p class="parts_search_list">
								<i class="search_chose search_chose_hover"></i>
								<span>物流<em class="color_red">（费用说明：物流费按商品总价10%预收，发货后退还多扣除费用）</em></span>
							</p>
							<p id="satisfyFreeShow">
								<span>满<em id="satisfyFreeMoney"></em>包邮</span>
							</p>
							<div class='numRadio' style="display: none;">
								<input type='radio' name='transportTypeRaDio' value='2' />
								<input type='radio' name='transportTypeRaDio' checked="checked" value='1'/>
							</div>
						</div>
					</div>
					<!--配送信息结束-->
					<!--商品信息-->
					<div class="shopping_car_list">
						<div class="pay_detail_tit clearfix">
							<p class=" pull-left">套餐信息：
							<span>${WebGoodsComb.name }</span>
							</p>
							<input type="hidden" value="${WebGoodsComb.price }" id="goodsComboPrice">
							<input type="hidden" value="${WebGoodsComb.id }" id="goodsComboIdInput">
							<p class="item_amout pull-right meal_amount">
								<a href="javascript:void(0);" class="plus js_reduce">-</a>
								<input type="number" value="1" class="num shop_num count">
								<a href="javascript:void(0);" class="plus js_plus">+</a>
							</p>
						</div>
						<!--列表-->
						<c:forEach items="${webGoodsCombDetails }" var="webGoodsCombDetail">
						<div class="shopping_car_item clearfix">
							<div class=" shopping_car_item_a col-xs-12">
								<div class="col-sm-1 col-xs-2 col-sm-offset-1 item_img pad0">
									<div class="vel_centers">
										<a href="javascript:void(0)">
											<img src="${ctxWeb}/web/file/getFile?filePath=${webGoodsCombDetail.goodsImageList[0] }" alt="" />
										</a>
									</div>
								</div>
								<div class="col-sm-6 col-xs-5 shop_msg_ph pad0">
									<figure class="col-sm-4 item_name pad0">
										<div class="vel_centers">
											<p>${webGoodsCombDetail.goodsName }</p>
										</div>
									</figure>
									<figure class="col-sm-4 text-center  pad0">
										<div class="vel_centers">
											<p>${webGoodsCombDetail.partsCode }</p>
										</div>
									</figure>
									<figure class="col-sm-4 text-center shop_price pad0">
										<div class="vel_centers">
											<p>¥ <span class="price_value">${webGoodsCombDetail.price }</span></p>
										</div>
									</figure>
								</div>
								<div class="col-sm-2 col-xs-5 ph_number">
									<figure class="col-sm-12 text-center pad0">
										<div class="vel_centers">
											<p class="item_amout">
												x${webGoodsCombDetail.num }
											</p>
										</div>
									</figure>
								</div>
								<div class="col-sm-2 item_totle text-center  pad0">
									<div class="vel_centers">
										<p>¥ <span class="sum_price">${webGoodsCombDetail.price * webGoodsCombDetail.num  }</span></p>
									</div>
								</div>
							</div>
						</div>
						</c:forEach>
						<!--列表结束-->
						<div class="shopping_info_box">
							<p>
								<em>商品合计：</em>
								<span>¥<span class="sum_accont"></span></span>
							</p>
							<p class="yf_wl">
								<em>运费：</em>
								<span>¥<span class="sum_yf"></span><em class="color_red advance">预收</em></span>
							</p>
							<p class="yf_kd hide">
								<em>运费：</em>
								<span class="sum_yf">到付</span>
							</p>
							<p class="pay_money">
								<em>实付金额：</em>
								<span>¥<span class="sum_accont_all"></span></span>
							</p>
						</div>
						<div class="shopping_car_price confirm_order">
							<a href="javascript:void(0)" onclick="confirmOrder()">提交订单</a>
						</div>
					</div>	
					<!--商品信息结束-->
				</div>
			</div>
		</div>
	</div>
	<!--购物车结束-->	
	<!--新增修改地址弹框-->
	<div class="jd_tk" id="proment_new_address" style="display: none;">
	<form action="" id="addressForm" method="post">
		<div class="address_Bomb">
			<h3 class="address_Bomb_title">
				<span class="address_Bomb_title_name">新增地址</span>
				<span class="close_page">
					<img src="${ctxWebStatic }/images/close.png" alt="" />
				</span>
			</h3>
			<div class="address_Bomb_info clearfix">
				<div class="address_Bomb_left col-sm-9 clearfix">
					<input type="hidden" class="receiveId">
					<figure class="form-group clearfix">
						<label  class="col-sm-3 col-xs-5 fp_lable control-label ">
					    	收件人：
					    </label>
					    <div class="col-sm-8 col-xs-7 pad0">
					      	<input type="text" class="form-control receiveName" name="receive" placeholder="请填写收件人">
					    </div>
					</figure>
					<figure class="form-group clearfix">
						<label  class="col-sm-3 col-xs-5 fp_lable control-label ">
					    	联系方式：
					    </label>
					    <div class="col-sm-8 col-xs-7 pad0">
					      	<input type="text" class="form-control receivePhone" name="phone" placeholder="请填写联系方式">
					    </div>
					</figure>
					<figure class="form-group clearfix">
						<label  class="col-sm-3 col-xs-5 fp_lable control-label ">
					    	所在地区：
					    </label>
					    <div class="col-sm-8 col-xs-7 pad0">
					      	<div class="tk_selcet"><!-- container -->									  	
								<select class="hy col-xs-12 col-sm-3 provinceSelect" name="province">
									<option value="">省</option>
								</select>
								<select class="hy col-xs-12 col-sm-3 citySelect" name="city">
									<option value="">市</option>
								</select>
								<select class="hy col-xs-12 col-sm-3 areaSelect" name="area">
									<option value="">区</option>
								</select>
							</div>
					    </div>
					</figure>
					<figure class="form-group clearfix">
						<label  class="col-sm-3 col-xs-5 fp_lable control-label ">
					    	详细地址：
					    </label>
					    <div class="col-sm-8 col-xs-7 pad0">
					      	<input type="text" class="form-control receiveAddress" name="address" placeholder="请填写详细地址">
					    </div>
					</figure>
				</div>
				<div class="col-sm-3 default_left">
					<div class="default_box">
						<i class="search_chose"></i>
						<span>设为默认地址</span>
					</div>
					<div class='numRadio' style="display: none;">
						<input type='checkbox' name='isDef' value='1' />
					</div>
				</div>
			</div>
			<div class=" shopping_car_price  proment_chose_address_save">
				<a href="javascript:void(0)">确认</a>
			</div>
		</div>
	</form>
	</div>
	<!--新增修改地址弹框结束-->
	<!--选择地址弹框-->
	<div class="jd_tk" id="proment_chose_address" style="display: none;">
		<div class="address_Bomb">
			<h3 class="address_Bomb_title">
				选择地址
				<span class="close_page">
					<img src="${ctxWebStatic }/images/close.png" alt="" />
				</span>
			</h3>
			<div class="chose_set_box">
			
			</div>
			<div class=" shopping_car_price shopping_car_confirm">
				<a href="javascript:void(0)">确认</a>
			</div>
		</div>
	</div>
	<!--选择地址弹框结束-->
	<form action="${ctxWeb}/goodsComb/vipGoodsComboConfirmOrder" id="vipGoodsComboConfirmOrderForm" method="post">
		<input name="goodsComboId" id="goodsComboId" type="hidden">
		<input name="goodsComboNum" id="goodsComboNum" type="hidden">
		<input name="goodsComboStoreCode" id="goodsComboStoreCode" type="hidden">
		<input name="transportType" value="1" id="transportType" type="hidden">
		<input name="isFree" id="isSatisfyFreeInput" type="hidden">
		<input name="provinceId" id="provinceId" type="hidden">
		<input name="receiveName" id="receiveName" type="hidden">
		<input name="receivePhone" id="receivePhone" type="hidden">
		<input name="receiveAddress" id="receiveAddress" type="hidden">
	</form>
	</body>
</html>
